package com.crm.workbench.mapper;

import com.crm.workbench.domain.Activity;

import java.util.List;
import java.util.Map;

public interface ActivityMapper {

    int deleteByPrimaryKey(String id);


    int insertSelective(Activity record);


    Activity selectByPrimaryKey(String id);


    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKey(Activity record);

    /*
    添加市场活动数据
     */
    int insertActivity(Activity activity);

    /*
    根据条件分页查询市场活动列表
   */
    List<Activity> selectActivityByConditionForPage(Map<String, Object> map);

    /*
    根据条件查询市场活动总条数
    */
    int selectCountOfActivityByCondition(Map<String, Object> map);
}